<?php
    include 'connectDB.php';
	
	$strSQL = "UPDATE tbl_merchant SET 
	 mer_name = '".$_POST[txtMerName]."' ,
	 description = '".$_POST[txtDes]."' ,
	 longtitude = '".$_POST[txtLong]."' ,
	 latitude = '".$_POST[txtLa]."' 
	 WHERE mer_id = '".$_GET["MerID"]."' ";
	
	$objQuery = mysql_query($strSQL);
	
	if($objQuery){
		echo "Edit Success.";
		echo '<meta HTTP-EQUIV="REFRESH" content="2; url=http://127.0.0.1/merchant/Merchant.php">';
	}else{
		echo "Error ! Edit not success.";
	}
?>